home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DDJ0992.ARJ / DBEQU.INC < prev    next >
Text File  |  1992-06-07  |  4KB  |  91 lines

  1. ;---------------------------------------------------------------    
  2. ;dbequ.inc - equates for debugger                              |
  3. ;--------------------------------------------------------------|
  4. ;  
  5. TRUE        EQU    1 
  6. FALSE        EQU    0
  7. TAB             EQU     9
  8. LF              EQU     0ah
  9. CR              EQU     0dh
  10. NULL            EQU     0
  11. DOS_PRT_STRING  EQU     9  
  12. DOS_TSR_FUNC    EQU     31h
  13. BEEP            EQU     7
  14.  
  15. KBD_FLAG        EQU     17h
  16. DEF_UD_INT      EQU     1               ;default int to enter user debugger        
  17. DEFAULT_ATTRIB  EQU     17h             ;default video attribute 
  18.  
  19. MAX_DR_BRK_POINTS  EQU     3            ;user can have this many debug
  20.                                         ;register type break points
  21. MAX_BRK_POINTS  EQU     16              ;user can have this many break points
  22. AVAIL           EQU     7fh             ;a break point is available for use
  23. ACTIVE          EQU     1
  24.  
  25. ESC_KEY         EQU     1bh
  26. LEFT_ARROW      EQU     4b00h
  27. RUB_OUT         EQU     0e08h
  28. RIGHT_ARROW     EQU     4d00h
  29. INSERT          EQU     5200h
  30. DELETE          EQU     5300h
  31. SPACE_KEY       EQU     3920h
  32.  
  33. KEY_BUF_MAX     EQU     32
  34. KEY_DAT         EQU     60h
  35. KEY_CNTRL       EQU     61h
  36. ADDR_6845       EQU     63h
  37. CRT_START       EQU     4eh
  38. DEF_DB_PAGE     EQU     2               ;video page debugger uses
  39. PAGE_SIZE       EQU     1000h      
  40. CURSOR_POS      EQU     50h
  41. ACTIVE_PAGE     EQU     62h
  42. DEBUG_ROW       EQU     22
  43. DEBUG_COL       EQU     1               ;column where prompt prints        
  44. CMD_MAX_LEN     EQU     78  
  45. STR_TERM        EQU     0
  46. LR_SHIFT        EQU     3
  47. BYTES_TO_DUMP   EQU     128             ;dump this many bytes on each dump
  48.  
  49. DEB_DAT_LEN1    EQU     0               ;values placed in debug registers
  50. DEB_DAT_LEN2    EQU     1               ;indicating length of data
  51. DEB_DAT_LEN4    EQU     3               ;being accessed
  52.  
  53. IO_TYPE_READ    EQU     2
  54. DEB_TYPE_EXEC   EQU     0               ;exec type break point        
  55. DEB_TYPE_WRITE  EQU     1               ;write break point        
  56. DEB_TYPE_RW     EQU     3               ;read/write break point        
  57. DEB_TYPE_INT    EQU     4               ;break on interrupt
  58. DEB_TYPE_IO     EQU     5               ;break on I/O
  59.  
  60. EQ_CODE         EQU     10h             ;codes stored indicating conditions
  61. NE_CODE         EQU     0
  62. INT_AL_COMP     EQU     1               ;al used to condition int break point
  63. INT_AH_COMP     EQU     2               ;ah used to condition int break point
  64. INT_AX_COMP     EQU     3               ;ax used to condition int break point
  65. NO_CONDITION    EQU     0               ;no additional conditions on break
  66. DEB_TEMP_DISAB  EQU     80h             
  67.  
  68. PRESENT         EQU     80H
  69. DPL0            EQU     0
  70. DPL3            EQU     3
  71. INT_GATE        EQU     0eh             ;80386 int gate
  72. USER_INT        EQU     61h
  73. RW_DATA         EQU     92h             ;read/write data
  74. ER_CODE         EQU     9ah             ;execute/read code
  75. TSS_DESC        EQU     89h             ;Task State Segment descriptor
  76. IO_MAP_SIZE     EQU     8192
  77. GEN_PROT_EXCEP  EQU     0dh             ;General Protection int number
  78.  
  79. INPUT           EQU     2               ;used in io_table to describe
  80. OUTPUT          EQU     1               ;the various I/O instructions
  81. ABYTE           EQU     4
  82. AWORD           EQU     8
  83. CONSTANT        EQU     10h
  84. STRING          EQU     20h
  85. SEG_OVER        EQU     40h
  86.  
  87. REP_PREFIX      EQU     0f3h            
  88. INT_OPCODE      EQU     0cdh
  89. INT3_OPCODE     EQU     0cch
  90. ;------end of dbequ.inc
  91.